package com.yangbo.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @author Administrator
 * @Date 2018-10-15 10:02
 */
@FeignClient(value = "eureka-client-producer",fallback = UserServiceFallBack.class)
public interface UserService {

    /**
     * 得到user
     * @param name
     * @return
     */
    @GetMapping(value = "/user")
    Map<String,Object> getUser(@RequestParam(value = "name") String name);
}
